- 
		Home
	
- 
YayPricing – WooCommerce Dynamic Pricing & Discounts
- 
2.4.8
- 
Code
- 
Classes
-  YAYDP_Simple_Discount 
		
			
				
					
													
								
																			
											| Total Complexity | 17 | 
																			
											| Dependencies | 4 | 
																			
											| Dependents | 0 | 
																	
							 
													
								
																			
											| Total lines | 154 | 
																			
											| Lines of code | 108 | 
																			
											| Logical lines of code | 49 | 
																	
							 
													
								
																			
											| Comment lines | 35 | 
																			
											| Methods | 7 | 
																			
											| Properties | 0 | 
																	
							 
											 
				 
									
							 
		 
	 
	Methods 7
	
		
		
			| Method | Rating | Maintainability | Complexity | Lines of code | 
		
		
					
				| get_coupon_data() | S | 48 | 4 | 36 | 
					
				| get_total_discount_amount() | S | 57 | 4 | 17 | 
					
				| create_possible_adjustment_from_cart() | S | 63 | 3 | 11 | 
					
				| get_coupon_content() | S | 56 | 2 | 20 | 
					
				| get_encouragements() | S | 61 | 2 | 13 | 
					
				| get_adjustment_amount() | S | 66 | 1 | 8 | 
					
				| add_coupon() | S | 80 | 1 | 3 |